package com.wispx.gateway.common.exception;

import com.wispx.gateway.common.enums.ResponseCode;

import java.io.Serial;

/**
 * 找不到下游服务时发生的异常
 */
public class NotFoundException extends GatewayException {

    @Serial
    static final long serialVersionUID = -7034897190745766939L;

    public NotFoundException(ResponseCode code) {
        super(code.getMessage(), code);
    }

    public NotFoundException(Throwable cause, ResponseCode code) {
        super(code.getMessage(), cause, code);
    }

}
